package com.example.studytest.Entity.OpenData;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

@Entity
@Data
public class OpenData {
    @Id

    private Integer id;
    private String expDate;
    private String expName;
    private String invited_code;
    private String session= null; //exp_session
    private String modality= "aural"; //
    private String exp_type= null; // 新增字段，判断材料类型,version
    private String expPhase= null; //test_session
    private String trialIndex= null;
    private String itemIndex = null;
    private String stimulus= null;
    private String responseIndex= null;
    private String response= null;
    private String buttonPressed= null;
    private String rt= null;
    private String timeElapsed= null;
    private String accuracy= null;
    private String score= null;

    public OpenData(Integer id, String expDate, String expName, String invited_code, String session, String modality, String exp_type, String expPhase, String trialIndex, String itemIndex, String stimulus, String responseIndex, String response, String buttonPressed, String rt, String timeElapsed, String accuracy, String score) {
        this.id = id;
        this.expDate = expDate;
        this.expName = expName;
        this.invited_code = invited_code;
        this.session = session;
        this.modality = modality;
        this.exp_type = exp_type;
        this.expPhase = expPhase;
        this.trialIndex = trialIndex;
        this.itemIndex = itemIndex;
        this.stimulus = stimulus;
        this.responseIndex = responseIndex;
        this.response = response;
        this.buttonPressed = buttonPressed;
        this.rt = rt;
        this.timeElapsed = timeElapsed;
        this.accuracy = accuracy;
        this.score = score;
    }

    public OpenData(){ super(); }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getExpDate() {
        return expDate;
    }

    public void setExpDate(String expDate) {
        this.expDate = expDate;
    }

    public String getExpName() {
        return expName;
    }

    public void setExpName(String expName) {
        this.expName = expName;
    }

    public String getInvited_code() {
        return invited_code;
    }

    public void setInvited_code(String invited_code) {
        this.invited_code = invited_code;
    }

    public String getSession() {
        return session;
    }

    public void setSession(String session) {
        this.session = session;
    }

    public String getExp_type() {
        return exp_type;
    }

    public void setExp_type(String exp_type) {
        this.exp_type = exp_type;
    }

    public String getExpPhase() {
        return expPhase;
    }

    public void setExpPhase(String expPhase) {
        this.expPhase = expPhase;
    }

    public String getTrialIndex() {
        return trialIndex;
    }

    public void setTrialIndex(String trialIndex) {
        this.trialIndex = trialIndex;
    }

    public String getStimulus() {
        return stimulus;
    }

    public void setStimulus(String stimulus) {
        this.stimulus = stimulus;
    }

    public String getResponseIndex() {
        return responseIndex;
    }

    public void setResponseIndex(String responseIndex) {
        this.responseIndex = responseIndex;
    }

    public String getResponse() {
        return response;
    }

    public void setResponse(String response) {
        this.response = response;
    }

    public String getButtonPressed() {
        return buttonPressed;
    }

    public void setButtonPressed(String buttonPressed) {
        this.buttonPressed = buttonPressed;
    }

    public String getRt() {
        return rt;
    }

    public void setRt(String rt) {
        this.rt = rt;
    }

    public String getTimeElapsed() {
        return timeElapsed;
    }

    public void setTimeElapsed(String timeElapsed) {
        this.timeElapsed = timeElapsed;
    }

    public String getAccuracy() {
        return accuracy;
    }

    public void setAccuracy(String accuracy) {
        this.accuracy = accuracy;
    }

    public String getScore() {
        return score;
    }

    public void setScore(String score) {
        this.score = score;
    }
}
